package com.ymatou.social.api.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.social.api.service.GetFindPageTagsCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;

/**
 * 发现-活动和tag接口 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_GetFindPageTags {
	private static GetFindPageTagsCall findPageCall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("发现-活动和tag接口");
	}

	@Before
	public void caseUp() {
		findPageCall = new GetFindPageTagsCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(findPageCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetFindPageTags_001() {
		Logger.start(true,"获取活动和tag成功");
		try {
			findPageCall.callService();
			Logger.comment("获取发现活动 call" + findPageCall.getEntityString());
			Logger.comment("获取发现活动  response" + findPageCall.getReturnData());
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}